﻿namespace HRM.CORE.Candidate
{
    using DevExpress.Utils;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraLayout;
    using DevExpress.XtraLayout.Utils;
    using DevExpress.XtraTab;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Common.Report;
    using Dictionary;
    using HRM.CORE;
    using HRM.CORE.REPORT;
    
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;

    public class xfmRate : XtraForm
    {
        private SimpleButton btClose;
        private SimpleButton btPrint;
        private SimpleButton btSaveClose;
        private CalcEdit calMark;
        private ComboBoxEdit cboPosition;
        private CheckEdit chIsPass;
        private IContainer components;
        private DateEdit dtDate;
        private GroupControl groupControl1;
        protected DevExpress.Utils.ImageCollection imageCollection2;
        private LabelControl labelControl5;
        private LayoutControl layoutControl1;
        private LayoutControlGroup layoutControlGroup1;
        private LayoutControlItem lcCommunicate;
        private LabelControl lcDate;
        private LayoutControlItem lcExperience;
        private LayoutControlItem lcHealth;
        private LabelControl lcInformation;
        private LayoutControlItem lcKnowledge;
        private LayoutControlItem lcLead;
        private LayoutControlItem lcLook;
        private LabelControl lcMark;
        private LabelControl lcPerson;
        private LabelControl lcProposal;
        private LabelControl lcRate;
        private LabelControl lcScore;
        private LayoutControlItem lcSituation;
        private LayoutControlItem lcSolve;
        private LayoutControlItem lcStyle;
        private LayoutControlItem lcTeam;
        private LayoutControlItem lcVoice;
        private string m_CandidateCode;
        private MemoEdit mmInformation;
        private MemoEdit mmProposal;
        private MemoEdit mmRate;
        private ComboBoxEdit txtCommunicate;
        private ComboBoxEdit txtExperience;
        private ComboBoxEdit txtHealth;
        private ComboBoxEdit txtKnowledge;
        private ComboBoxEdit txtLead;
        private ComboBoxEdit txtLook;
        private TextEdit txtPerson;
        private ComboBoxEdit txtSituation;
        private ComboBoxEdit txtSolve;
        private ComboBoxEdit txtStyle;
        private ComboBoxEdit txtTeam;
        private ComboBoxEdit txtVoice;
        private XtraTabControl xtraTabControl1;
        private XtraTabPage xtraTabPage1;
        private XtraTabPage xtraTabPage2;

        public event SuccessEventHander Success;

        public xfmRate()
        {
            this.components = null;
            this.m_CandidateCode = "";
            this.InitializeComponent();
            this.InitMultiLanguages();
        }

        public xfmRate(string CandidateCode)
        {
            this.components = null;
            this.m_CandidateCode = "";
            this.InitializeComponent();
            this.InitMultiLanguages();
            this.m_CandidateCode = CandidateCode;
            this.Init();
        }

        private void AddComboboxEdit(ComboBoxEdit combo, string str)
        {
            combo.Properties.Items.Add(str);
            combo.SelectedIndex = combo.Properties.Items.Count - 1;
        }

        private void btClose_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        private void btPrint_Click(object sender, EventArgs e)
        {
            xfmReport report = new xfmReport();
            rptRate xtraReport = new rptRate(this.m_CandidateCode);
            report.SetTitle("Đ\x00e1nh gi\x00e1 phỏng vấn ứng vi\x00ean");
            report.ShowPrintPreview(xtraReport);
        }

        private void btSaveClose_Click(object sender, EventArgs e)
        {
            HRM_CANDIDATE_RATE hrm_candidate_rate = new HRM_CANDIDATE_RATE {
                RateID = Guid.NewGuid(),
                CandidateCode = this.m_CandidateCode,
                Person = this.txtPerson.Text,
                Date = this.dtDate.DateTime,
                Position = this.cboPosition.Text,
                Look = this.txtLook.Text,
                Style = this.txtStyle.Text,
                Voice = this.txtVoice.Text,
                Health = this.txtHealth.Text,
                Knowledge = this.txtKnowledge.Text,
                Experience = this.txtExperience.Text,
                Communicate = this.txtCommunicate.Text,
                Solve = this.txtSolve.Text,
                Team = this.txtTeam.Text,
                Situation = this.txtSituation.Text,
                Lead = this.txtLead.Text,
                Information = this.mmInformation.Text,
                Rate = this.mmRate.Text,
                Proposal = this.mmProposal.Text,
                Mark = double.Parse(this.calMark.Text),
                IsPass = this.chIsPass.Checked
            };
            if (hrm_candidate_rate.Update() == "OK")
            {
                XtraMessageBox.Show("Lưu dữ liệu th\x00e0nh c\x00f4ng!", "Th\x00f4ng B\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                HRM_CANDIDATE hrm_candidate = new HRM_CANDIDATE();
                hrm_candidate.Get(this.m_CandidateCode);
                if (hrm_candidate.Status == 4)
                {
                    this.RaiseSuccessEventHander(4);
                }
                else
                {
                    HRM_CANDIDATE_MARK hrm_candidate_mark = new HRM_CANDIDATE_MARK();
                    if (hrm_candidate_mark.Get(this.m_CandidateCode) != "OK")
                    {
                        hrm_candidate.UpdateStatus(this.m_CandidateCode, 2);
                        this.RaiseSuccessEventHander(2);
                    }
                    else if (!(hrm_candidate_mark.IsPass || hrm_candidate_rate.IsPass))
                    {
                        hrm_candidate.UpdateStatus(this.m_CandidateCode, 0);
                        this.RaiseSuccessEventHander(0);
                    }
                    else if (!(!hrm_candidate_mark.IsPass || hrm_candidate_rate.IsPass))
                    {
                        hrm_candidate.UpdateStatus(this.m_CandidateCode, 1);
                        this.RaiseSuccessEventHander(1);
                    }
                    else if (!(hrm_candidate_mark.IsPass || !hrm_candidate_rate.IsPass))
                    {
                        hrm_candidate.UpdateStatus(this.m_CandidateCode, 2);
                        this.RaiseSuccessEventHander(2);
                    }
                    else if (hrm_candidate_mark.IsPass && hrm_candidate_rate.IsPass)
                    {
                        hrm_candidate.UpdateStatus(this.m_CandidateCode, 3);
                        this.RaiseSuccessEventHander(3);
                    }
                }
            }
            else
            {
                MessageBox.Show("Cập nhật kết quả phỏng vấn thất bại!");
            }
        }

        private void cboPosition_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            xfmPositionAdd.AddedEventHander hander = null;
            if (e.Button.Kind == ButtonPredefines.Glyph)
            {
                xfmPositionAdd add = new xfmPositionAdd(Actions.Add);
                if (hander == null)
                {
                    hander = (s, i) => this.AddComboboxEdit(this.cboPosition, i.PositionName);
                }
                add.Added += hander;
                add.ShowDialog();
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void Init()
        {
            this.dtDate.DateTime = System.DateTime.Now;
            new DIC_POSITION().AddComboEdit(this.cboPosition);
            HRM_CANDIDATE hrm_candidate = new HRM_CANDIDATE();
            hrm_candidate.Get(this.m_CandidateCode);
            this.Text = "Nhập th\x00f4ng tin đ\x00e1nh gi\x00e1 về ứng vi\x00ean - " + hrm_candidate.FirstName + " " + hrm_candidate.LastName + " (" + hrm_candidate.CandidateCode + ")";
            this.cboPosition.Text = hrm_candidate.Position1;
            HRM_CANDIDATE_RATE hrm_candidate_rate = new HRM_CANDIDATE_RATE();
            hrm_candidate_rate.Get(this.m_CandidateCode);
            if (hrm_candidate_rate != null)
            {
                this.txtPerson.Text = hrm_candidate_rate.Person;
                this.dtDate.DateTime = hrm_candidate_rate.Date;
                this.cboPosition.Text = hrm_candidate_rate.Position;
                this.txtLook.Text = hrm_candidate_rate.Look;
                this.txtStyle.Text = hrm_candidate_rate.Style;
                this.txtVoice.Text = hrm_candidate_rate.Voice;
                this.txtHealth.Text = hrm_candidate_rate.Health;
                this.txtKnowledge.Text = hrm_candidate_rate.Knowledge;
                this.txtExperience.Text = hrm_candidate_rate.Experience;
                this.txtCommunicate.Text = hrm_candidate_rate.Communicate;
                this.txtSolve.Text = hrm_candidate_rate.Solve;
                this.txtTeam.Text = hrm_candidate_rate.Team;
                this.txtSituation.Text = hrm_candidate_rate.Situation;
                this.txtLead.Text = hrm_candidate_rate.Lead;
                this.mmInformation.Text = hrm_candidate_rate.Information;
                this.mmRate.Text = hrm_candidate_rate.Rate;
                this.mmProposal.Text = hrm_candidate_rate.Proposal;
                this.calMark.EditValue = hrm_candidate_rate.Mark;
                this.chIsPass.EditValue = hrm_candidate_rate.IsPass;
            }
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(HRM.CORE.Candidate.xfmRate));
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            this.groupControl1 = new GroupControl();
            this.layoutControl1 = new LayoutControl();
            this.txtLook = new ComboBoxEdit();
            this.txtStyle = new ComboBoxEdit();
            this.txtVoice = new ComboBoxEdit();
            this.txtHealth = new ComboBoxEdit();
            this.txtKnowledge = new ComboBoxEdit();
            this.txtExperience = new ComboBoxEdit();
            this.txtCommunicate = new ComboBoxEdit();
            this.txtSolve = new ComboBoxEdit();
            this.txtTeam = new ComboBoxEdit();
            this.txtLead = new ComboBoxEdit();
            this.txtSituation = new ComboBoxEdit();
            this.layoutControlGroup1 = new LayoutControlGroup();
            this.lcLook = new LayoutControlItem();
            this.lcStyle = new LayoutControlItem();
            this.lcVoice = new LayoutControlItem();
            this.lcHealth = new LayoutControlItem();
            this.lcKnowledge = new LayoutControlItem();
            this.lcExperience = new LayoutControlItem();
            this.lcCommunicate = new LayoutControlItem();
            this.lcSolve = new LayoutControlItem();
            this.lcTeam = new LayoutControlItem();
            this.lcSituation = new LayoutControlItem();
            this.lcLead = new LayoutControlItem();
            this.btClose = new SimpleButton();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.btSaveClose = new SimpleButton();
            this.calMark = new CalcEdit();
            this.lcMark = new LabelControl();
            this.chIsPass = new CheckEdit();
            this.lcScore = new LabelControl();
            this.xtraTabControl1 = new XtraTabControl();
            this.xtraTabPage1 = new XtraTabPage();
            this.xtraTabPage2 = new XtraTabPage();
            this.lcProposal = new LabelControl();
            this.lcRate = new LabelControl();
            this.lcInformation = new LabelControl();
            this.mmProposal = new MemoEdit();
            this.mmInformation = new MemoEdit();
            this.mmRate = new MemoEdit();
            this.txtPerson = new TextEdit();
            this.dtDate = new DateEdit();
            this.lcPerson = new LabelControl();
            this.lcDate = new LabelControl();
            this.labelControl5 = new LabelControl();
            this.cboPosition = new ComboBoxEdit();
            this.btPrint = new SimpleButton();
            this.groupControl1.BeginInit();
            this.groupControl1.SuspendLayout();
            this.layoutControl1.BeginInit();
            this.layoutControl1.SuspendLayout();
            this.txtLook.Properties.BeginInit();
            this.txtStyle.Properties.BeginInit();
            this.txtVoice.Properties.BeginInit();
            this.txtHealth.Properties.BeginInit();
            this.txtKnowledge.Properties.BeginInit();
            this.txtExperience.Properties.BeginInit();
            this.txtCommunicate.Properties.BeginInit();
            this.txtSolve.Properties.BeginInit();
            this.txtTeam.Properties.BeginInit();
            this.txtLead.Properties.BeginInit();
            this.txtSituation.Properties.BeginInit();
            this.layoutControlGroup1.BeginInit();
            this.lcLook.BeginInit();
            this.lcStyle.BeginInit();
            this.lcVoice.BeginInit();
            this.lcHealth.BeginInit();
            this.lcKnowledge.BeginInit();
            this.lcExperience.BeginInit();
            this.lcCommunicate.BeginInit();
            this.lcSolve.BeginInit();
            this.lcTeam.BeginInit();
            this.lcSituation.BeginInit();
            this.lcLead.BeginInit();
            this.imageCollection2.BeginInit();
            this.calMark.Properties.BeginInit();
            this.chIsPass.Properties.BeginInit();
            this.xtraTabControl1.BeginInit();
            this.xtraTabControl1.SuspendLayout();
            this.xtraTabPage1.SuspendLayout();
            this.xtraTabPage2.SuspendLayout();
            this.mmProposal.Properties.BeginInit();
            this.mmInformation.Properties.BeginInit();
            this.mmRate.Properties.BeginInit();
            this.txtPerson.Properties.BeginInit();
            this.dtDate.Properties.VistaTimeProperties.BeginInit();
            this.dtDate.Properties.BeginInit();
            this.cboPosition.Properties.BeginInit();
            base.SuspendLayout();
            this.groupControl1.BorderStyle = BorderStyles.NoBorder;
            this.groupControl1.Controls.Add(this.layoutControl1);
            this.groupControl1.Dock = DockStyle.Fill;
            this.groupControl1.Location = new Point(0, 0);
            this.groupControl1.Name = "groupControl1";
            this.groupControl1.Size = new Size(0x221, 280);
            this.groupControl1.TabIndex = 0;
            this.groupControl1.Text = "Nhập th\x00f4ng tin đ\x00e1nh gi\x00e1 về ứng vi\x00ean";
            this.layoutControl1.Controls.Add(this.txtLook);
            this.layoutControl1.Controls.Add(this.txtStyle);
            this.layoutControl1.Controls.Add(this.txtVoice);
            this.layoutControl1.Controls.Add(this.txtHealth);
            this.layoutControl1.Controls.Add(this.txtKnowledge);
            this.layoutControl1.Controls.Add(this.txtExperience);
            this.layoutControl1.Controls.Add(this.txtCommunicate);
            this.layoutControl1.Controls.Add(this.txtSolve);
            this.layoutControl1.Controls.Add(this.txtTeam);
            this.layoutControl1.Controls.Add(this.txtLead);
            this.layoutControl1.Controls.Add(this.txtSituation);
            this.layoutControl1.Dock = DockStyle.Fill;
            this.layoutControl1.Location = new Point(0, 0);
            this.layoutControl1.Name = "layoutControl1";
            this.layoutControl1.Root = this.layoutControlGroup1;
            this.layoutControl1.Size = new Size(0x221, 280);
            this.layoutControl1.TabIndex = 0;
            this.layoutControl1.Text = "layoutControl1";
            this.txtLook.EditValue = "";
            this.txtLook.Location = new Point(0xc2, 6);
            this.txtLook.Name = "txtLook";
            this.txtLook.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtLook.Properties.Items.AddRange(new object[] { "Ấn tượng kh\x00f4ng tốt", "B\x00ecnh thường", "S\x00e1ng sủa", "Tạo thiện cảm", "G\x00e2y ấn tượng rất tốt" });
            this.txtLook.Size = new Size(0x159, 20);
            this.txtLook.StyleController = this.layoutControl1;
            this.txtLook.TabIndex = 0;
            this.txtStyle.EditValue = "";
            this.txtStyle.Location = new Point(0xc2, 30);
            this.txtStyle.Name = "txtStyle";
            this.txtStyle.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtStyle.Properties.Items.AddRange(new object[] { "Hợm hĩnh, lắc cắc", "Uể oải", "Chỉnh tề, ngay ngắn", "C\x00f3 phong c\x00e1ch ri\x00eang, tự tin, cởi mở", "Nhiệt t\x00ecnh, nhanh nhẹn, ham học hỏi" });
            this.txtStyle.Size = new Size(0x159, 20);
            this.txtStyle.StyleController = this.layoutControl1;
            this.txtStyle.TabIndex = 1;
            this.txtVoice.EditValue = "";
            this.txtVoice.Location = new Point(0xc2, 0x36);
            this.txtVoice.Name = "txtVoice";
            this.txtVoice.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtVoice.Properties.Items.AddRange(new object[] { "Kh\x00f3 nghe", "Đ\x00f4i l\x00fac kh\x00f4ng r\x00f5 hoặc yếu", "B\x00ecnh thường", "Trong trẻo, r\x00f5 r\x00e0ng", "Thuyết phục, truyền cảm" });
            this.txtVoice.Size = new Size(0x159, 20);
            this.txtVoice.StyleController = this.layoutControl1;
            this.txtVoice.TabIndex = 2;
            this.txtHealth.EditValue = "";
            this.txtHealth.Location = new Point(0xc2, 0x4e);
            this.txtHealth.Name = "txtHealth";
            this.txtHealth.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtHealth.Properties.Items.AddRange(new object[] { "C\x00f3 vẻ yếu ớt", "B\x00ecnh thường", "C\x00f3 v\x00e0 khỏe mạnh" });
            this.txtHealth.Size = new Size(0x159, 20);
            this.txtHealth.StyleController = this.layoutControl1;
            this.txtHealth.TabIndex = 3;
            this.txtKnowledge.EditValue = "";
            this.txtKnowledge.Location = new Point(0xc2, 0x66);
            this.txtKnowledge.Name = "txtKnowledge";
            this.txtKnowledge.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtKnowledge.Properties.Items.AddRange(new object[] { "Kh\x00f4ng biết g\x00ec", "Rất \x00edt", "Cơ bản", "Kh\x00e1 tốt", "Rất tốt" });
            this.txtKnowledge.Size = new Size(0x159, 20);
            this.txtKnowledge.StyleController = this.layoutControl1;
            this.txtKnowledge.TabIndex = 4;
            this.txtExperience.EditValue = "";
            this.txtExperience.Location = new Point(0xc2, 0x7e);
            this.txtExperience.Name = "txtExperience";
            this.txtExperience.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtExperience.Properties.Items.AddRange(new object[] { "Kh\x00f4ng c\x00f3 kinh nghiệm g\x00ec", "C\x00f3 kinh nghiệm lĩnh vực kh\x00f4ng li\x00ean quan", "C\x00f3 kinh nghiệm lĩnh vực li\x00ean quan<1 năm", "C\x00f3 kinh nghiệm lĩnh vực li\x00ean quan<3 năm", "C\x00f3 kinh nghiệm lĩnh vực li\x00ean quan>3 năm" });
            this.txtExperience.Size = new Size(0x159, 20);
            this.txtExperience.StyleController = this.layoutControl1;
            this.txtExperience.TabIndex = 5;
            this.txtCommunicate.EditValue = "";
            this.txtCommunicate.Location = new Point(0xc2, 150);
            this.txtCommunicate.Name = "txtCommunicate";
            this.txtCommunicate.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtCommunicate.Properties.Items.AddRange(new object[] { "Kh\x00f4ng hiểu vấn đề", "Kh\x00f4ng mạch lạc", "Hiểu vấn đề, trả lời đ\x00fang c\x00e2u hỏi", "Hiểu v\x00e0 diễn đạt \x00fd tưởng tr\x00f4i chảy", "Ph\x00e1t biểu được \x00fd tưởng, độc đ\x00e1o g\x00e2y cảm x\x00fac" });
            this.txtCommunicate.Size = new Size(0x159, 20);
            this.txtCommunicate.StyleController = this.layoutControl1;
            this.txtCommunicate.TabIndex = 6;
            this.txtCommunicate.EditValueChanged += new EventHandler(this.txtCommunicate_EditValueChanged);
            this.txtSolve.EditValue = "";
            this.txtSolve.Location = new Point(0xc2, 0xae);
            this.txtSolve.Name = "txtSolve";
            this.txtSolve.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtSolve.Properties.Items.AddRange(new object[] { "L\x00fang t\x00fang, kh\x00f4ng giải quyết được", "Chậm chạp, phải gợi \x00fd nhiều", "Phản ứng nhanh", "B\x00ecnh tĩnh, xử l\x00fd hợp l\x00fd", "Phản ứng nhanh, hợp l\x00fd, l\x00e0m chủ t\x00ecnh huống" });
            this.txtSolve.Size = new Size(0x159, 20);
            this.txtSolve.StyleController = this.layoutControl1;
            this.txtSolve.TabIndex = 7;
            this.txtTeam.EditValue = "";
            this.txtTeam.Location = new Point(0xc2, 0xc6);
            this.txtTeam.Name = "txtTeam";
            this.txtTeam.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtTeam.Properties.Items.AddRange(new object[] { "Kh\x00f4ng th\x00edch", "\x00cdt khi tham gia", "Sẳn s\x00e0ng tham gia", "Tham gia, l\x00e0m việc v\x00ec mục ti\x00eau chung", "Biết điều h\x00f2a, li\x00ean kết, g\x00e2y dựng tinh thần l\x00e0m việc của nh\x00f3m" });
            this.txtTeam.Size = new Size(0x159, 20);
            this.txtTeam.StyleController = this.layoutControl1;
            this.txtTeam.TabIndex = 8;
            this.txtLead.EditValue = "";
            this.txtLead.Location = new Point(0xc2, 0xf6);
            this.txtLead.Name = "txtLead";
            this.txtLead.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtLead.Properties.Items.AddRange(new object[] { "Chưa c\x00f3", "Quản l\x00fd nh\x00f3m dưới 5 người", "Quản l\x00fd dưới 20 người", "L\x00e3nh đạo v\x00e0 quản l\x00fd đơn vị dưới 30 người", "L\x00e3nh đạo v\x00e0 quản l\x00fd đơn vị tr\x00ean 30 người" });
            this.txtLead.Size = new Size(0x159, 20);
            this.txtLead.StyleController = this.layoutControl1;
            this.txtLead.TabIndex = 10;
            this.txtSituation.EditValue = "";
            this.txtSituation.Location = new Point(0xc2, 0xde);
            this.txtSituation.Name = "txtSituation";
            this.txtSituation.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.txtSituation.Properties.Items.AddRange(new object[] { "Kh\x00f4ng ph\x00f9 hợp", "Phải vượt qua nhiều cản trở, kh\x00f3 khăn", "Ổn định, đạt y\x00eau cầu c\x00f4ng việc", "Thuận tiện, cần một m\x00f4i trường l\x00e0m việc ph\x00f9 hợp", "C\x00f3 nhu cầu khẳng định v\x00e0 cần được c\x00f4ng nhận khả năng" });
            this.txtSituation.Size = new Size(0x159, 20);
            this.txtSituation.StyleController = this.layoutControl1;
            this.txtSituation.TabIndex = 9;
            this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DefaultBoolean.True;
            this.layoutControlGroup1.GroupBordersVisible = false;
            this.layoutControlGroup1.Items.AddRange(new BaseLayoutItem[] { this.lcLook, this.lcStyle, this.lcVoice, this.lcHealth, this.lcKnowledge, this.lcExperience, this.lcCommunicate, this.lcSolve, this.lcTeam, this.lcSituation, this.lcLead });
            this.layoutControlGroup1.Location = new Point(0, 0);
            this.layoutControlGroup1.Name = "layoutControlGroup1";
            this.layoutControlGroup1.Padding = new DevExpress.XtraLayout.Utils.Padding(4, 4, 4, 4);
            this.layoutControlGroup1.Size = new Size(0x221, 280);
            this.layoutControlGroup1.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup1.Text = "layoutControlGroup1";
            this.layoutControlGroup1.TextVisible = false;
            this.lcLook.Control = this.txtLook;
            this.lcLook.CustomizationFormText = "Ngoại h\x00ecnh:";
            this.lcLook.Location = new Point(0, 0);
            this.lcLook.Name = "lcLook";
            this.lcLook.Size = new Size(0x219, 0x18);
            this.lcLook.Text = "Ngoại h\x00ecnh (nh\x00ecn b\x00ean ngo\x00e0i):";
            this.lcLook.TextSize = new Size(0xb8, 13);
            this.lcStyle.Control = this.txtStyle;
            this.lcStyle.CustomizationFormText = "Phong c\x00e1ch, th\x00e1i độ:";
            this.lcStyle.Location = new Point(0, 0x18);
            this.lcStyle.Name = "lcStyle";
            this.lcStyle.Size = new Size(0x219, 0x18);
            this.lcStyle.Text = "Phong c\x00e1ch, th\x00e1i độ:";
            this.lcStyle.TextSize = new Size(0xb8, 13);
            this.lcVoice.Control = this.txtVoice;
            this.lcVoice.CustomizationFormText = "Giọng n\x00f3i:";
            this.lcVoice.Location = new Point(0, 0x30);
            this.lcVoice.Name = "lcVoice";
            this.lcVoice.Size = new Size(0x219, 0x18);
            this.lcVoice.Text = "Giọng n\x00f3i:";
            this.lcVoice.TextSize = new Size(0xb8, 13);
            this.lcHealth.Control = this.txtHealth;
            this.lcHealth.CustomizationFormText = "Sức khỏe:";
            this.lcHealth.Location = new Point(0, 0x48);
            this.lcHealth.Name = "lcHealth";
            this.lcHealth.Size = new Size(0x219, 0x18);
            this.lcHealth.Text = "T\x00ecnh trạng sức khỏe hiện tại:";
            this.lcHealth.TextSize = new Size(0xb8, 13);
            this.lcKnowledge.Control = this.txtKnowledge;
            this.lcKnowledge.CustomizationFormText = "Hiểu biết chuy\x00ean m\x00f4n:";
            this.lcKnowledge.Location = new Point(0, 0x60);
            this.lcKnowledge.Name = "lcKnowledge";
            this.lcKnowledge.Size = new Size(0x219, 0x18);
            this.lcKnowledge.Text = "Hiểu biết về chuy\x00ean m\x00f4n:";
            this.lcKnowledge.TextSize = new Size(0xb8, 13);
            this.lcExperience.Control = this.txtExperience;
            this.lcExperience.CustomizationFormText = "Kinh nghiệm l\x00e0m việc:";
            this.lcExperience.Location = new Point(0, 120);
            this.lcExperience.Name = "lcExperience";
            this.lcExperience.Size = new Size(0x219, 0x18);
            this.lcExperience.Text = "Kinh nghiệm l\x00e0m việc:";
            this.lcExperience.TextSize = new Size(0xb8, 13);
            this.lcCommunicate.Control = this.txtCommunicate;
            this.lcCommunicate.CustomizationFormText = "Khả năng giao tiếp:";
            this.lcCommunicate.Location = new Point(0, 0x90);
            this.lcCommunicate.Name = "lcCommunicate";
            this.lcCommunicate.Size = new Size(0x219, 0x18);
            this.lcCommunicate.Text = "Khả năng tr\x00ecnh b\x00e0y, giao tiếp:";
            this.lcCommunicate.TextSize = new Size(0xb8, 13);
            this.lcSolve.Control = this.txtSolve;
            this.lcSolve.CustomizationFormText = "Khả năng giải quyết t\x00ecnh huống:";
            this.lcSolve.Location = new Point(0, 0xa8);
            this.lcSolve.Name = "lcSolve";
            this.lcSolve.Size = new Size(0x219, 0x18);
            this.lcSolve.Text = "Khả năng giải quyết t\x00ecnh huống:";
            this.lcSolve.TextSize = new Size(0xb8, 13);
            this.lcTeam.Control = this.txtTeam;
            this.lcTeam.CustomizationFormText = "Khả năng l\x00e0m việc tập thể:";
            this.lcTeam.Location = new Point(0, 0xc0);
            this.lcTeam.Name = "lcTeam";
            this.lcTeam.Size = new Size(0x219, 0x18);
            this.lcTeam.Text = "Khả năng l\x00e0m việc tập thể:";
            this.lcTeam.TextSize = new Size(0xb8, 13);
            this.lcSituation.Control = this.txtSituation;
            this.lcSituation.CustomizationFormText = "Ho\x00e0n cảnh (c\x00f3 ph\x00f9 hợp với c\x00f4ng việc):";
            this.lcSituation.Location = new Point(0, 0xd8);
            this.lcSituation.Name = "lcSituation";
            this.lcSituation.Size = new Size(0x219, 0x18);
            this.lcSituation.Text = "Ho\x00e0n cảnh (c\x00f3 ph\x00f9 hợp với c\x00f4ng việc):";
            this.lcSituation.TextSize = new Size(0xb8, 13);
            this.lcLead.Control = this.txtLead;
            this.lcLead.CustomizationFormText = "Kinh nghiệm l\x00e3nh đạo v\x00e0 quản l\x00fd:";
            this.lcLead.Location = new Point(0, 240);
            this.lcLead.Name = "lcLead";
            this.lcLead.Size = new Size(0x219, 0x20);
            this.lcLead.Text = "Kinh nghiệm l\x00e3nh đạo v\x00e0 quản l\x00fd:";
            this.lcLead.TextSize = new Size(0xb8, 13);
            this.btClose.ImageIndex = 2;
            this.btClose.ImageList = this.imageCollection2;
            this.btClose.Location = new Point(0x1d2, 0x163);
            this.btClose.Name = "btClose";
            this.btClose.Size = new Size(80, 0x17);
            this.btClose.TabIndex = 12;
            this.btClose.Text = "Đ\x00f3ng";
            this.btClose.Click += new EventHandler(this.btClose_Click);
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(7, "print-16x16.png");
            this.btSaveClose.ImageIndex = 1;
            this.btSaveClose.ImageList = this.imageCollection2;
            this.btSaveClose.Location = new Point(0x13b, 0x163);
            this.btSaveClose.Name = "btSaveClose";
            this.btSaveClose.Size = new Size(0x5b, 0x17);
            this.btSaveClose.TabIndex = 10;
            this.btSaveClose.Text = "Lưu";
            this.btSaveClose.Click += new EventHandler(this.btSaveClose_Click);
            int[] bits = new int[4];
            this.calMark.EditValue = new decimal(bits);
            this.calMark.Location = new Point(0x69, 0x161);
            this.calMark.Name = "calMark";
            this.calMark.Properties.Appearance.Font = new Font("Tahoma", 10f, FontStyle.Bold);
            this.calMark.Properties.Appearance.Options.UseFont = true;
            this.calMark.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.calMark.Size = new Size(100, 0x17);
            this.calMark.TabIndex = 7;
            this.lcMark.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.lcMark.Appearance.Options.UseFont = true;
            this.lcMark.Location = new Point(6, 0x166);
            this.lcMark.Name = "lcMark";
            this.lcMark.Size = new Size(0x5c, 13);
            this.lcMark.TabIndex = 6;
            this.lcMark.Text = "ĐIỂM Đ\x00c1NH GI\x00c1:";
            this.chIsPass.Location = new Point(0xf8, 0x164);
            this.chIsPass.Name = "chIsPass";
            this.chIsPass.Properties.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.chIsPass.Properties.Appearance.Options.UseFont = true;
            this.chIsPass.Properties.Caption = "Đậu";
            this.chIsPass.Size = new Size(0x2f, 0x13);
            this.chIsPass.TabIndex = 9;
            this.lcScore.Location = new Point(0xd3, 0x165);
            this.lcScore.Name = "lcScore";
            this.lcScore.Size = new Size(0x1a, 13);
            this.lcScore.TabIndex = 8;
            this.lcScore.Text = "ĐIỂM";
            this.xtraTabControl1.BorderStyle = BorderStyles.NoBorder;
            this.xtraTabControl1.HeaderLocation = TabHeaderLocation.Bottom;
            this.xtraTabControl1.Location = new Point(2, 0x20);
            this.xtraTabControl1.Name = "xtraTabControl1";
            this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1;
            this.xtraTabControl1.Size = new Size(0x228, 0x135);
            this.xtraTabControl1.TabIndex = 5;
            this.xtraTabControl1.TabPages.AddRange(new XtraTabPage[] { this.xtraTabPage1, this.xtraTabPage2 });
            this.xtraTabPage1.Controls.Add(this.groupControl1);
            this.xtraTabPage1.Name = "xtraTabPage1";
            this.xtraTabPage1.Size = new Size(0x221, 280);
            this.xtraTabPage1.Text = "Ti\x00eau ch\x00ed đ\x00e1nh gi\x00e1";
            this.xtraTabPage2.Controls.Add(this.lcProposal);
            this.xtraTabPage2.Controls.Add(this.lcRate);
            this.xtraTabPage2.Controls.Add(this.lcInformation);
            this.xtraTabPage2.Controls.Add(this.mmProposal);
            this.xtraTabPage2.Controls.Add(this.mmInformation);
            this.xtraTabPage2.Controls.Add(this.mmRate);
            this.xtraTabPage2.Name = "xtraTabPage2";
            this.xtraTabPage2.Size = new Size(0x221, 280);
            this.xtraTabPage2.Text = "Nhận x\x00e9t v\x00e0 đề nghị";
            this.lcProposal.Location = new Point(8, 0xc1);
            this.lcProposal.Name = "lcProposal";
            this.lcProposal.Size = new Size(0x29, 13);
            this.lcProposal.TabIndex = 4;
            this.lcProposal.Text = "Đề nghị:";
            this.lcRate.Location = new Point(10, 0x66);
            this.lcRate.Name = "lcRate";
            this.lcRate.Size = new Size(0x30, 13);
            this.lcRate.TabIndex = 2;
            this.lcRate.Text = "Nhận x\x00e9t:";
            this.lcInformation.Location = new Point(10, 7);
            this.lcInformation.Name = "lcInformation";
            this.lcInformation.Size = new Size(90, 13);
            this.lcInformation.TabIndex = 0;
            this.lcInformation.Text = "Th\x00f4ng tin bổ sung:";
            this.mmProposal.Location = new Point(6, 210);
            this.mmProposal.Name = "mmProposal";
            this.mmProposal.Size = new Size(0x215, 0x38);
            this.mmProposal.TabIndex = 5;
            this.mmInformation.Location = new Point(6, 0x1a);
            this.mmInformation.Name = "mmInformation";
            this.mmInformation.Size = new Size(0x216, 70);
            this.mmInformation.TabIndex = 1;
            this.mmRate.Location = new Point(6, 0x77);
            this.mmRate.Name = "mmRate";
            this.mmRate.Size = new Size(0x215, 0x45);
            this.mmRate.TabIndex = 3;
            this.txtPerson.Location = new Point(100, 6);
            this.txtPerson.Name = "txtPerson";
            this.txtPerson.Properties.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.txtPerson.Properties.Appearance.Options.UseFont = true;
            this.txtPerson.Size = new Size(0xd1, 20);
            this.txtPerson.TabIndex = 2;
            this.dtDate.EditValue = null;
            this.dtDate.Location = new Point(0x196, 6);
            this.dtDate.Name = "dtDate";
            this.dtDate.Properties.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.dtDate.Properties.Appearance.Options.UseFont = true;
            this.dtDate.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.dtDate.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.dtDate.Size = new Size(0x88, 20);
            this.dtDate.TabIndex = 4;
            this.lcPerson.Location = new Point(8, 9);
            this.lcPerson.Name = "lcPerson";
            this.lcPerson.Size = new Size(0x56, 13);
            this.lcPerson.TabIndex = 1;
            this.lcPerson.Text = "Người phỏng vấn:";
            this.lcDate.Location = new Point(0x13b, 9);
            this.lcDate.Name = "lcDate";
            this.lcDate.Size = new Size(0x53, 13);
            this.lcDate.TabIndex = 3;
            this.lcDate.Text = "Ng\x00e0y phỏng vấn:";
            this.labelControl5.Location = new Point(0xe3, 0x143);
            this.labelControl5.Name = "labelControl5";
            this.labelControl5.Size = new Size(0x48, 13);
            this.labelControl5.TabIndex = 4;
            this.labelControl5.Text = "Vị tr\x00ed dự tuyển:";
            this.cboPosition.Location = new Point(0x130, 320);
            this.cboPosition.Name = "cboPosition";
            this.cboPosition.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("cboPosition.Properties.Buttons"), new KeyShortcut(Keys.None), appearance, "", null, null, true) });
            this.cboPosition.Size = new Size(0xf2, 0x16);
            this.cboPosition.TabIndex = 5;
            this.cboPosition.ButtonClick += new ButtonPressedEventHandler(this.cboPosition_ButtonClick);
            this.btPrint.ImageIndex = 7;
            this.btPrint.ImageList = this.imageCollection2;
            this.btPrint.Location = new Point(0x19c, 0x163);
            this.btPrint.Name = "btPrint";
            this.btPrint.Size = new Size(0x30, 0x17);
            this.btPrint.TabIndex = 11;
            this.btPrint.Text = "In";
            this.btPrint.Click += new EventHandler(this.btPrint_Click);
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x229, 0x180);
            base.Controls.Add(this.btPrint);
            base.Controls.Add(this.cboPosition);
            base.Controls.Add(this.labelControl5);
            base.Controls.Add(this.lcDate);
            base.Controls.Add(this.lcPerson);
            base.Controls.Add(this.dtDate);
            base.Controls.Add(this.txtPerson);
            base.Controls.Add(this.lcScore);
            base.Controls.Add(this.chIsPass);
            base.Controls.Add(this.lcMark);
            base.Controls.Add(this.calMark);
            base.Controls.Add(this.btSaveClose);
            base.Controls.Add(this.btClose);
            base.Controls.Add(this.xtraTabControl1);
            base.FormBorderStyle = FormBorderStyle.FixedSingle;
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "xfmRate";
            base.ShowIcon = false;
            base.ShowInTaskbar = false;
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text = "Kết Quả Đ\x00e1nh Gi\x00e1 Phỏng Vấn";
            base.Load += new EventHandler(this.xfmRate_Load);
            this.groupControl1.EndInit();
            this.groupControl1.ResumeLayout(false);
            this.layoutControl1.EndInit();
            this.layoutControl1.ResumeLayout(false);
            this.txtLook.Properties.EndInit();
            this.txtStyle.Properties.EndInit();
            this.txtVoice.Properties.EndInit();
            this.txtHealth.Properties.EndInit();
            this.txtKnowledge.Properties.EndInit();
            this.txtExperience.Properties.EndInit();
            this.txtCommunicate.Properties.EndInit();
            this.txtSolve.Properties.EndInit();
            this.txtTeam.Properties.EndInit();
            this.txtLead.Properties.EndInit();
            this.txtSituation.Properties.EndInit();
            this.layoutControlGroup1.EndInit();
            this.lcLook.EndInit();
            this.lcStyle.EndInit();
            this.lcVoice.EndInit();
            this.lcHealth.EndInit();
            this.lcKnowledge.EndInit();
            this.lcExperience.EndInit();
            this.lcCommunicate.EndInit();
            this.lcSolve.EndInit();
            this.lcTeam.EndInit();
            this.lcSituation.EndInit();
            this.lcLead.EndInit();
            this.imageCollection2.EndInit();
            this.calMark.Properties.EndInit();
            this.chIsPass.Properties.EndInit();
            this.xtraTabControl1.EndInit();
            this.xtraTabControl1.ResumeLayout(false);
            this.xtraTabPage1.ResumeLayout(false);
            this.xtraTabPage2.ResumeLayout(false);
            this.xtraTabPage2.PerformLayout();
            this.mmProposal.Properties.EndInit();
            this.mmInformation.Properties.EndInit();
            this.mmRate.Properties.EndInit();
            this.txtPerson.Properties.EndInit();
            this.dtDate.Properties.VistaTimeProperties.EndInit();
            this.dtDate.Properties.EndInit();
            this.cboPosition.Properties.EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }

        private void InitMultiLanguages()
        {
            this.lcPerson.Text = MultiLanguages.GetString("tbl_CandidateRate", "Person", this.lcPerson.Text);
            this.lcDate.Text = MultiLanguages.GetString("tbl_CandidateRate", "Date", this.lcDate.Text);
            this.lcLook.Text = MultiLanguages.GetString("tbl_CandidateRate", "Look", this.lcLook.Text);
            this.lcStyle.Text = MultiLanguages.GetString("tbl_CandidateRate", "Style", this.lcStyle.Text);
            this.lcVoice.Text = MultiLanguages.GetString("tbl_CandidateRate", "Voice", this.lcVoice.Text);
            this.lcHealth.Text = MultiLanguages.GetString("tbl_CandidateRate", "Health", this.lcHealth.Text);
            this.lcKnowledge.Text = MultiLanguages.GetString("tbl_CandidateRate", "Knowledge", this.lcKnowledge.Text);
            this.lcExperience.Text = MultiLanguages.GetString("tbl_CandidateRate", "Experience", this.lcExperience.Text);
            this.lcCommunicate.Text = MultiLanguages.GetString("tbl_CandidateRate", "Communicate", this.lcCommunicate.Text);
            this.lcSolve.Text = MultiLanguages.GetString("tbl_CandidateRate", "Solve", this.lcSolve.Text);
            this.lcTeam.Text = MultiLanguages.GetString("tbl_CandidateRate", "Team", this.lcTeam.Text);
            this.lcSituation.Text = MultiLanguages.GetString("tbl_CandidateRate", "Situation", this.lcSituation.Text);
            this.lcLead.Text = MultiLanguages.GetString("tbl_CandidateRate", "Lead", this.lcLead.Text);
            this.lcMark.Text = MultiLanguages.GetString("tbl_CandidateRate", "Mark", this.lcMark.Text);
            this.lcScore.Text = MultiLanguages.GetString("tbl_CandidateRate", "Score", this.lcScore.Text);
            this.chIsPass.Text = MultiLanguages.GetString("tbl_CandidateRate", "IsPass", this.chIsPass.Text);
            this.lcInformation.Text = MultiLanguages.GetString("tbl_CandidateRate", "Information", this.lcInformation.Text);
            this.lcRate.Text = MultiLanguages.GetString("tbl_CandidateRate", "Rate", this.lcRate.Text);
            this.lcProposal.Text = MultiLanguages.GetString("tbl_CandidateRate", "Proposal", this.lcProposal.Text);
        }

        private void RaiseSuccessEventHander(int value)
        {
            if (this.Success != null)
            {
                this.Success(this, value);
            }
        }

        private void txtCommunicate_EditValueChanged(object sender, EventArgs e)
        {
        }

        private void xfmRate_Load(object sender, EventArgs e)
        {
        }

        public delegate void SuccessEventHander(object sender, int value);
    }
}

